/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.devmng.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

import java.math.BigDecimal;

/**
 * 设备检修项与检修结果类型的关系Entity
 * @author panda
 * @version 2017-12-02
 */
public class DevchkItemAnswer extends DataEntity<DevchkItemAnswer> {
	
	private static final long serialVersionUID = 1L;
	private String devchkItemId;		// 设备检修项
	private String devchkAnswerId;		// 设备检修回答
	private String contentDesc; // 回答内容描述
	private String unitCode; //  回答内容单位编码
	private String tag; // 标签，用来标识多个测量值对应的内容
	private int sortNum; // 排序值
	private BigDecimal minValue; // 范围最小值
	private BigDecimal maxValue; // 范围最大值
	
	public DevchkItemAnswer() {
		super();
	}

	public DevchkItemAnswer(String id){
		super(id);
	}

	@Length(min=0, max=64, message="设备检修项长度必须介于 0 和 64 之间")
	public String getDevchkItemId() {
		return devchkItemId;
	}

	public void setDevchkItemId(String devchkItemId) {
		this.devchkItemId = devchkItemId;
	}
	
	@Length(min=0, max=64, message="设备检修回答长度必须介于 0 和 64 之间")
	public String getDevchkAnswerId() {
		return devchkAnswerId;
	}

	public void setDevchkAnswerId(String devchkAnswerId) {
		this.devchkAnswerId = devchkAnswerId;
	}

	public String getContentDesc() {
		return contentDesc;
	}

	public void setContentDesc(String contentDesc) {
		this.contentDesc = contentDesc;
	}

	public String getUnitCode() {
		return unitCode;
	}

	public void setUnitCode(String unitCode) {
		this.unitCode = unitCode;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public int getSortNum() {
		return sortNum;
	}

	public void setSortNum(int sortNum) {
		this.sortNum = sortNum;
	}

	public BigDecimal getMinValue() {
		return minValue;
	}

	public void setMinValue(BigDecimal minValue) {
		this.minValue = minValue;
	}

	public BigDecimal getMaxValue() {
		return maxValue;
	}

	public void setMaxValue(BigDecimal maxValue) {
		this.maxValue = maxValue;
	}
}